# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>

pkgname=kdesvn
pkgver=2.1.0
pkgrel=3
pkgdesc="A pure C++ SVN-client for KDE"
arch=('loong64' 'x86_64')
url="https://invent.kde.org/sdk/kdesvn"
license=('GPL')
depends=('subversion' 'kcoreaddons5' 'kdoctools5' 'kio5' 'knotifications5' 'kparts5' 'ktexteditor5')
makedepends=('extra-cmake-modules')
changelog=$pkgname.changelog
source=(https://download.kde.org/stable/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz)
sha256sums=('515eb95d5d2a51b495df01adf56ef0af703c5d344bb49bc2a6390ef57bba027b')

build() {
  cd "${srcdir}"/$pkgname-$pkgver

  cmake . \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_CXX_FLAGS="-DQT_THREAD_SUPPORT" \
    -DLIB_SUFFIX=
  make
}

package() {
  cd "${srcdir}"/$pkgname-$pkgver

  make DESTDIR="${pkgdir}" install
}
